package com.zhanqiao.service;

import com.zhanqiao.Dao.MessageDao;
import com.zhanqiao.domain.MessageBean;

import java.sql.SQLException;
import java.util.List;

public class MessagesService implements MessageService{
    @Override
    public List<MessageBean> messageService(String page,String limit) throws SQLException {
        MessageDao messageDao=new MessageDao();
        List<MessageBean> list=messageDao.selectAll(page,limit);
        return list;
    }
}
